package com.linkage.repository.commodity;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.pojo.commodity.Category;
/**
 * 商品与mysql数据库连接的数据库接口
 * 
 * @author fujian
 * @version V1.0
 * @createTime 2015/1/28
 * 注释    每个方法的第一行注释指各个方法具体做什么，而第二行注释指参数
 */
@Repository
public interface CategoryRepository {
	//根据类目id来查询
	public Category select(@Param("categoryId")int categoryId);
	
	public List<Category> allCategory();
	
	public void saveCategory(Category category);

	public boolean getCategoryById(@Param("categoryId")Integer categoryId);
	
	public boolean createCategory(Category category);

}
